<!--{template header}-->
  <!--{eval $adlist = $this->fromcache("adlist");}-->
<link rel="stylesheet" media="all" href="{SITE_URL}static/css/widescreen/css/greendetail.css" />
<link rel="stylesheet" media="all" href="{SITE_URL}static/css/widescreen/css/widescreendetail.css" />
   <script type="text/javascript" src="{SITE_URL}static/js/jquery.qrcode.min.js"></script>
   
              <!--广告位1-->
            <!--{if (isset($adlist['question_view']['inner1']) && trim($adlist['question_view']['inner1']))}-->
<div class="advlong-bottom">
            <div class="advlong-default">
        
               <a href="http://www.zhiask.cn/" target="_blank"><img src="https://www.ask2.cn/static/images/zhihi.jpg" width="2000" height="167" alt="" title="" border="0"></a>          
            </div>
        </div>
          <!--{/if}-->
        <div class="content-wrap">
        <div class="work-details-wrap border-bottom">
                <div class="work-details-box-wrap">
                    <div class="left-details-head">
                        
                        <div class="details-contitle-box">
                            <!--标题-->
                            <h2>{$topicone['title']}</h2>
                           
                            <!--发布时间-->
                            <p  class="title-time">
                                <span>{$topicone['viewtime']}</span>发布
                                     <span class="share-group">
        <a class="share-circle share-weixin" data-action="weixin-share" data-toggle="tooltip" data-original-title="分享到微信">
          <i class="fa fa-wechat"></i>
        </a>
        <a class="share-circle" data-toggle="tooltip" href="javascript:void((function(s,d,e,r,l,p,t,z,c){var%20f='http://v.t.sina.com.cn/share/share.php?appkey=1515056452',u=z||d.location,p=['&amp;url=',e(u),'&amp;title=',e(t||d.title),'&amp;source=',e(r),'&amp;sourceUrl=',e(l),'&amp;content=',c||'gb2312','&amp;pic=',e(p||'')].join('');function%20a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=440,height=430,left=',(s.width-440)/2,',top=',(s.height-430)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent,'','','{$topicone['image']}', '推荐 {$topicone['author']} 的文章《{$topicone['title']}》','{url topic/getone/$topicone['id']}','页面编码gb2312|utf-8默认gb2312'));" data-original-title="分享到微博">
          <i class="fa fa-weibo"></i>
        </a>




  <script type="text/javascript">document.write(['<a class="share-circle" data-toggle="tooltip"  target="_self" data-original-title="分享到qq空间" href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=',encodeURIComponent(location.href),'&title=',encodeURIComponent(document.title),'" target="_self"   title="分享到QQ空间"> <i class="fa fa-qq"></i><\/a>'].join(''));</script>

      </span>
                            </p>
                            <!--分类,浏览数,评论数,推荐数-->
                            <div class="work-head-box">
                                <div class="head-left">
                                            <span class="head-index">
                                                <span><a href="{url topic/default}" target="_blank">站内文章</a></span>
                                                <i>/</i>
                                                <span><a href="{url topic/catlist/$cat_model['id']}" target="_blank">{$cat_model['name']}</a></span>
                                               
                                            </span>
                              
                                </div>
                                <div class="head-right">
                                            <span class="head-data-show">
                                            <a href="javascript:;" title="共{$topicone['views']}人气" class="see vertical-line">
                                                <i></i>{$topicone['views']}
                                            </a>
                                            <a href="javascript:;" title="共{$topicone['articles']}评论" class="news vertical-line">
                                                <i></i>{$topicone['articles']}
                                            </a>
                                            <a href="javascript:;" title="共{$topicone['likes']}收藏" class="recommend-show">
                                                <i></i>{$topicone['likes']}
                                            </a>
                                            </span>
                                              <!--{if $user['grouptype']==1||$user['uid']==$member['uid']}-->
                <!-- 如果是当前作者，加入编辑按钮 -->
                <a href="javascript:void(0)"  data-toggle="dropdown" class="edit dropdown-toggle">操作 <i class="fa fa-angle-down mar-lr-05"></i> </a>
                 <ul class="dropdown-menu" role="menu">
                {if $user['grouptype']==1}
                       <li>


                    <a href="{url topic/pushhot/$topicone['id']}" data-toggle="tooltip" data-html="true" data-original-title="被推荐文章将会在首页展示">
                        <span>推荐文章</span>
                    </a>
                      </li>
                        <li>


                    <a href="{url topicdata/pushindex/$topicone['id']/topic}" data-toggle="tooltip" data-html="true" data-original-title="被顶置的文章将会在首页列表展示">
                    <span>首页顶置</span>
                    </a>
                      </li>
                      {/if}
                           <li>

                    <a href="{url user/editxinzhi/$topicone['id']}">
                      <span>编辑文章</span>
                    </a>
                      </li>
                        <li>

                    <a href="{url user/deletexinzhi/$topicone['id']}">
                       <span>删除文章</span>
                    </a>
                      </li>

                             </ul>
                               <!--{/if}-->
                                </div>
                            </div>
                        </div>
                    </div>
                    




<div class="top-author-card follow-box">
    <div class="card-designer-list-details details-right-author-wrap card-media">

        <input type="hidden" name="creator" value="14876008">
        <div class="avatar-container-80">
            <a href="{url user/space/$member['uid']}" title="{$topicone['author']}" class="avatar" >
                <img src="{$member['avatar']}" width="80" height="80" alt="">
            </a>
            
        </div>
        <div class="author-info">
            <p class="author-info-title">
           
             
                <a href="{url user/space/$member['uid']}" title="{$topicone['author']}" class="title-content">
               {$topicone['author']}
                  {if $topicone['author_has_vertify']!=false}<i class="fa fa-vimeo {if $topicone['author_has_vertify'][0]=='0'}v_person {else}v_company {/if}  " data-toggle="tooltip" data-placement="right" title="" {if $topicone['author_has_vertify'][0]=='0'}data-original-title="个人认证" {else}data-original-title="企业认证" {/if} ></i>{/if}
                </a>





            </p>
        <div class="position-info">
                <span>{if $member['gender']==0}女{/if}{if $member['gender']==1}男{/if}&nbsp;|&nbsp;{$member['grouptitle']}</span>
            </div>
            <div class="btn-area">
                
      
                
                        <div class="js-project-focus-btn">
                                   <!-- 关注用户按钮 -->
                 {if  $is_followedauthor}
                                <input type="button" title="已关注" id="attenttouser_{$topicone['authorid']}" onclick="attentto_user($topicone['authorid'])" class="btn-current attention btn-default-secondary following" value="已关注" >
                              {else}
                               <input type="button" title="添加关注" id="attenttouser_{$topicone['authorid']}" onclick="attentto_user($topicone['authorid'])" class="btn-current attention btn-default-main notfollow" value="关注">
                                {/if}
                        </div>
                            {if $user['uid']}
                        <a href="{url message/sendmessage/$topicone['authorid']}" title="发私信" class="btn-default-secondary btn-current private-letter">私信</a>
                     
                     {else}
                       <a href="javascript:login()" title="发私信" class="btn-default-secondary btn-current private-letter">私信</a>
                     
                      {/if}
            </div>
               
        </div>
    </div>
</div>

                </div>
            </div>
            
            <div class="work-details-content">
    
<div class="work-content-wrap ">
    <div class="work-center-con">

        <div class="work-show-box" style="margin-top:0px;">
            
                     {if $topicone['price']!=0&&$haspayprice==0&&$user['uid']!=$topicone['authorid']}
  {eval echo replacewords($topicone['freeconent']);}
  
                         <div class="box_toukan ">

										{if $user['uid']==0}
											<a onclick="login()" class="thiefbox font-12" style="color:#fff;text-decoration:none;" ><i class="icon icon-lock font-12"></i> &nbsp;更多阅读需支付&nbsp;$topicone['price']&nbsp;&nbsp;{eval if ($topicone['readmode']==2) echo '积分'; }{eval if ($topicone['readmode']==3) echo '元'; }……</a>
											{else}
											<a onclick="viewtopic($topicone['id'])"  class="thiefbox font-12" style="color:#fff;text-decoration:none;" ><i class="icon icon-lock font-12"></i> &nbsp;更多阅读需支付&nbsp;$topicone['price']&nbsp;&nbsp;{eval if ($topicone['readmode']==2) echo '积分'; }{eval if ($topicone['readmode']==3) echo '元'; }……</a>
											{/if}


										</div>
                   {else}
                 
                {eval    echo $topicone['describtion'];    }

              
                    {/if}





        </div>

    </div>
</div>

                



            </div>
            <div class="details-con-other border-top">
                <div class="work-details-box-wrap">
                   
                        <div class="works-tag-wrap">
                        <span class="bbb-color">标签：</span>
                            
                           
                            
                          <!--{if $taglist}-->
                                       <!--{loop $taglist $tag}-->

  <a href="{url tags/view/$tag['tagalias']}" title="{$tag['tagname']}" target="_blank" class="project-tag-14">{$tag['tagname']}</a>
                           
               
                <!--{/loop}--><!--{else}--><!--{/if}-->
                        </div>
                    
                    <div class="three-link">
                    {if $isfollowarticle}
                    <input type="button"  class="btn-default-secondary details-collection-btn collection js-not-fav js-project-fav" value="已收藏" data-on="1" title="已收藏">
                        
                   {else}
                   {if $user['uid']}
                    <input type="button" onclick="window.location.href='{url favorite/topicadd/$topicone['id']}'" z-st="favorite" class="btn-default-secondary details-collection-btn collection js-not-fav js-project-fav" value="收藏" data-on="1" title="收藏">
                      
                      {else}
                       <input type="button" onclick="login()" z-st="favorite" class="btn-default-secondary details-collection-btn collection js-not-fav js-project-fav" value="收藏" data-on="1" title="收藏">
                     
                      {/if}  
                    {/if}
                        
                      
                        <span class="report" onclick="openinform(0,'{$topicone['title']}',{$topicone['id']})"  id="report-modal"><a href="javascript:;">举报 </a></span>
                       
                    </div>
                </div>
            </div>
            
        </div>
        <div class="work-details-box-wrap details-bottom">
           <div class="details-work-info-wrap">
    




<div class="author-card follow-box"><div class="card-media designer-card" data-id="14876008">
        <div class="avatar-container-80 center">
            <a href="{url user/space/$member['uid']}"  title="{$topicone['author']}" class="author-avatar" target="_blank">
                <img src="{$member['avatar']}" alt="{$topicone['author']}" width="80" height="80"></a>
            
        </div>
        <br>
        <div class="presonal-info">
            <a href="{url user/space/$member['uid']}"  title="{$topicone['author']}" class="author-name">{$topicone['author']}</a>
            <span class="zcool-treetop">
                
            </span>
     
        </div>
        <div class="position-info">
                <span>{if $member['gender']==0}女{/if}{if $member['gender']==1}男{/if}&nbsp;|&nbsp;{$member['grouptitle']}</span>
            </div>
            <div class="btn-area">
                
      
                
                        <div class="js-project-focus-btn">
                                   <!-- 关注用户按钮 -->
                 {if  $is_followedauthor}
                                <input type="button" title="已关注"  onclick="attentto_user($topicone['authorid'])" class="attenttouser_{$topicone['authorid']} btn-current attention btn-default-secondary following" value="已关注" >
                              {else}
                               <input type="button" title="添加关注"  onclick="attentto_user($topicone['authorid'])" class="attenttouser_{$topicone['authorid']} btn-current attention btn-default-main notfollow" value="关注">
                                {/if}
                        </div>
                            {if $user['uid']}
                        <a href="{url message/sendmessage/$topicone['authorid']}" title="发私信" class="btn-default-secondary btn-current private-letter">私信</a>
                     
                     {else}
                       <a href="javascript:login()" title="发私信" class="btn-default-secondary btn-current private-letter">私信</a>
                     
                      {/if}
            </div>
    </div></div>

    






<div class="right-fixed-wrap">
    
    <div class="infomation-work">
        <div class="rightbar-titlebox">
            <h3 class="rightbar-title left">收藏的人({$topicone['likes']})</h3>
           
        </div>
        <ul class="info-list" style="display: block;">
            
            



<div class="info-first js-a-team-info" data-zteamid="0"></div>


               <!--{loop $followerlist $fuser}-->
             <li><a href="{url user/space/$fuser['uid']}" target="_self" class="avatar">
             <img src="{$fuser['avatar']}" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="{$fuser['username']} · {$fuser['format_time']} 关注"></a>
             </li>
             <!--{/loop}-->
            
        </ul>
    </div>
</div>


    
    





   


</div>
           <div class="details-bottom-right">
           <div class="">
                    <div class="show-list-title-box js-tab-module">
                        <span class="show-tab-title current">Ta的文章</span>
                  
                        <a href="{url topic/userxinzhi/$member['uid']}" title="{$member['username']}"  class="view-more zcool-link-color">更多文章</a>
                    </div>
                    



<div class="js-tab-con-wrap mt-10 mb-10">
    <div class="picture-content-wrap js-toggle-module">
        <ul class="picture-list-box">
           
        
         <!--{loop $topiclist1 $index $topic}-->
                    
                    
                <li>
                    
                    
                    
                    <a href="{url topic/getone/$topic['id']}"  title="{$topic['title']}" class="card-img-hover">
                        <img src="{$topic['image']}" title="{$topic['title']}" alt="{$topic['title']}">
                        
                    </a>
                    <div class="mt-10">
                        <a href="{url topic/getone/$topic['id']}" title="{$topic['title']}" class="tab-work-name link">{$topic['title']}</a>
                        
                            <span class="fire-16 fire2"></span>
                        
                    </div>
                </li>
                   <!--{/loop}-->
                
              
              
                </ul>
    </div>
     <div class="included-album-wrap js-toggle-module hide">   
     </div>
</div>

                </div>
                
                <div class="index">
<div class="row">
   <div class=" main" style="padding:10px">
   <div class="note">
    <div class="post">
       


 


        <div><div id="comment-list" class="comment-list"><div>
            {if $user['uid']!=0}
 <form class="new-comment">
  <input type="hidden" id="artitle" value="{$topicone['title']}" />
    <input type="hidden" id="artid" value="{$topicone['id']}" />
 <a class="avatar">
 <img src="{$user['avatar']}">
 </a>
 <textarea onkeydown="return topickeydownlistener(event)"  placeholder="写下你的评论..." class="comment-area"></textarea>
 <div class="write-function-block"> <div class="hint">Ctrl+Enter 发表</div>
 <a class="btn btn-send btn-cm-submit" name="comments" id="comments">发送</a> </div>
 </form>
   {else}
  <form class="new-comment"><a class="avatar"><img src="{$user['avatar']}"></a> <div class="sign-container"><a href="{url user/login}" class="btn btn-sign">登录</a> <span>后发表评论</span></div></form>

            {/if}

        </div>
        <div id="normal-comment-list" class="normal-comment-list">
        <div>
        <div>
        <div class="top">
        <span>{$commentrownum}条评论</span>


           </div>
           </div>
           <!----> <!---->
            <!--{if $commentlist==null}-->
            <div class="no-comment"></div>

               <div class="text">
           还没有人评论过~
          </div>

              <!--{/if}-->
          <!--{loop $commentlist $index $comment}-->
            <div id="comment-{$comment['id']}" class="comment">
            <div>
            <div class="author">
            <a href="{url user/space/$comment['authorid']}" target="_self" class="avatar">
            <img src="{$comment['avatar']}">
            </a>
            <div class="info">
            <a href="{url user/space/$comment['authorid']}" target="_self" class="name">
            {$comment['author']}
              {if $comment['author_has_vertify']!=false}<i class="fa fa-vimeo {if $comment['author_has_vertify'][0]=='0'}v_person {else}v_company {/if}  " data-toggle="tooltip" data-placement="right" title="" {if $comment['author_has_vertify'][0]=='0'}data-original-title="个人认证" {else}data-original-title="企业认证" {/if} ></i>{/if}
            </a>
            <!---->
             <div class="meta">
             <span>{eval echo ++$index;}楼 · {$comment['time']}</span>
             </div>
             </div>
             </div>
             <div class="comment-wrap">
             <p>
              {$comment['content']}
             </p>

                </div>
                </div>
                 <div class="tool-group">
             <a class="button_agree" id='{$comment['id']}'><i class="fa fa-thumbs-o-up"></i> <span>{$comment['supports']}人赞</span></a>

<a class="getcommentlist" dataid='{$comment['id']}' datatid="{$topicone['id']}"><i class="fa fa-comment"></i> <span>回复{$comment['comments']}</span></a>

                <!--{if 1==$user['grouptype'] ||$user['uid']==$comment['authorid']}-->

    <a data-placement="bottom" title="" data-toggle="tooltip" data-original-title="删除评论"   href="javascript:void(0);" onclick="deletewenzhang($comment['id'])"><i class="fa fa-bookmark-o"></i> <span>删除</span></a>
     <!--{/if}-->

                <!---->
                </div>
               <div class="sub-comment-list  hide" dataflag="0" id="articlecommentlist{$comment['id']}">
              <div class="commentlist{$comment['id']}">

              </div>
              <div class="sub-comment more-comment">
              <a class="add-comment-btn" dataid="{$comment['id']}"><i class="fa fa-edit"></i>
               <span>添加新评论</span></a>
               <!----> <!----> <!---->
               </div>
                <div class="formcomment{$comment['id']} hide">
                <form class="new-comment">
                <!---->
                <textarea placeholder="写下你的评论..." class="commenttext{$comment['id']}"></textarea>
                 <div class="write-function-block">


                  <a class="btn btn-send  btn-sendartcomment" id="btnsendcomment{$comment['id']}"  dataid="{$comment['id']}" datatid="{$topicone['id']}">发送</a>

                  </div>
                  </form>
                   <!---->
                   </div>
                   </div>
                </div>
 <!--{/loop}-->
  <div class="pages" >{$departstr}</div>
             <div class="comments-placeholder" style="display: none;"><div class="author"><div class="avatar"></div> <div class="info"><div class="name"></div> <div class="meta"></div></div></div> <div class="text"></div> <div class="text animation-delay"></div> <div class="tool-group"><i class="iconfont ic-zan-active"></i><div class="zan"></div> <i class="iconfont ic-list-comments"></i><div class="zan"></div></div></div></div></div> <!----> <!---->
             </div>
             </div>
    </div>


</div>



   </div>
   
</div>
</div>
           </div>
            </div>

<!-- 举报 -->
<div class="modal fade panel-report" id="dialog_inform">
<div class="modal-dialog">
  <div class="modal-content">
    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
      <h4 class="modal-title">举报内容</h4>
    </div>
    <div class="modal-body">

<form id="rp_form" class="rp_form"  action="{url inform/add}" method="post">
<input value="" type="hidden" name="qid" id="myqid">
<input value="" type="hidden" name="aid" id="myaid">
<input value="" type="hidden" name="qtitle" id="myqtitle">
<div class="js-group-type group group-2">
<h4>检举类型</h4><ul>
<li class="js-report-con">
<label><input type="radio" name="group-type" value="1"><span>检举内容</span></label>
</li>
<li class="js-report-user">
<label><input type="radio" name="group-type" value="2"><span>检举用户</span></label>
</li>
</ul>
</div>
<div class="group group-2">
<h4>检举原因</h4><div class="list">
<ul>
<li>
<label class="reason-btn"><input type="radio" name="type" value="4"><span>广告推广</span></label>
</li>
<li>
<label class="reason-btn"><input type="radio" name="type" value="5"><span>恶意灌水</span></label>
</li>
<li>
<label class="reason-btn"><input type="radio" name="type" value="6"><span>回答内容与提问无关</span>
</label>
</li>
<li>
<label class="copy-ans-btn"><input type="radio" name="type" value="7"><span>抄袭答案</span></label>
</li>
<li>
<label class="reason-btn"><input type="radio" name="type" value="8"><span>其他</span></label>
</li>
</ul>
</div>
</div>
<div class="group group-3">
<h4>检举说明(必填)</h4>
<div class="textarea">
<ul class="anslist" style="display:none;line-height:20px;overflow:auto;height:171px;">
</ul>
<textarea name="content" maxlength="200" placeholder="请输入描述200个字以内">
</textarea>
</div>
</div>
    <div class="mar-t-1">

                <button type="submit" id="btninform" class="btn btn-success">提交</button>
                 <button type="button" class="btn btn-default mar-ly-1" data-dismiss="modal">关闭</button>
      </div>
</form>


    </div>

  </div>
</div>
</div>
<div class="modal share-wechat animated" style="display: none;"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" data-dismiss="modal" class="close">×</button></div> <div class="modal-body"><h5>打开微信“扫一扫”，打开网页后点击屏幕右上角分享按钮</h5> <div data-url="{url topic/getone/$topicone['id']}" class="qrcode" title="{url topic/getone/$topicone['id']}"><canvas width="170" height="170" style="display: none;"></canvas>
<div id="qr_wxcode">
</div></div></div> <div class="modal-footer"></div></div></div></div>
<script type="text/javascript" src="{SITE_URL}static/ckplayer/ckplayer.js" charset="utf-8"></script>
<script type="text/javascript" src="{SITE_URL}static/ckplayer/video.js" charset="utf-8"></script>
<script>
//投诉
function openinform(qid ,qtitle,aid) {
	  $("#myqid").val(qid);
	  $("#myqtitle").val(qtitle);
	  $("#myaid").val(aid);
	 $('#dialog_inform').modal('show');

}






function deletewenzhang(current_aid){
	window.location.href=g_site_url + "index.php" + query + "topic/deletearticlecomment/"+current_aid+"/$topicone['id']";

}

$(function(){

		//微信二维码生成
		$('#qr_wxcode').qrcode("{url topic/getone/$topicone['id']}");
	     //显示微信二维码
	     $(".share-weixin").click(function(){
	    	 $(".share-wechat").show();
	     });
	     //关闭微信二维码
	     $(".close").click(function(){
	    	 $(".share-wechat").hide();
	     })
})
 $(".button_agree").click(function(){
             var supportobj = $(this);
                     var tid = $(this).attr("id");
                     $.ajax({
                     type: "GET",
                             url:"{SITE_URL}index.php?topic/ajaxhassupport/" + tid,
                             cache: false,
                             success: function(hassupport){
                             if (hassupport != '1'){






                                     $.ajax({
                                     type: "GET",
                                             cache:false,
                                             url: "{SITE_URL}index.php?topic/ajaxaddsupport/" + tid,
                                             success: function(comments) {

                                             supportobj.find("span").html(comments+"人赞");
                                             }
                                     });
                             }else{
                            	 alert("您已经赞过");
                             }
                             }
                     });
             });
</script>
<!--{template footer}-->